package youleche.com.connection;

import java.sql.ResultSet;
import java.sql.Statement;

/**
 * JDBC工具类
 * @author Administrator
 *
 */
public class JdbcHelper {
	/**
	 * 释放RS和PS的资源
	 * @param rs rs
	 * @param ps ps
	 * @throws Exception 异常
	 */
	public static void free(ResultSet rs,Statement ps) throws Exception{
        
        try {
            if(rs != null)
            	rs.close(); 
        }finally{
            if(ps != null)
            	ps.close();
        }
	}     
}
